#-*- coding: utf-8 -*-

import wx
from List import ListCtrlCustom


class DLG//Name//Index(wx.Dialog):
    def __init__(self, *args, **kwds):
        # begin wxGlade: DLGConfigDB.__init__
        kwds["style"] = wx.DEFAULT_DIALOG_STYLE
        wx.Dialog.__init__(self, *args, **kwds)
        self.SetTitle("//caption//")
        self.SetSize((600, 400))

        self.agregar = wx.Button(self, -1, "Agregar")
        self.view = wx.Button(self, -1, "Visualizar")
        self.edit = wx.Button(self, -1, "Editar")
        self.delete = wx.Button(self, -1, "Eliminar")
        self.Status = wx.StaticText(self, -1, "Status")

        col = []
//controller_column//
        self.table = ListCtrlCustom(self, -1, col)	   
        
        self.__do_layout()
        
        #self.load()
        #self.Bind(wx.EVT_BUTTON, self.OnAgregar, self.agregar)
        #self.Bind(wx.EVT_BUTTON, self.OnView, self.view)
        #self.Bind(wx.EVT_BUTTON, self.OnEdit, self.edit)
        #self.Bind(wx.EVT_BUTTON, self.OnDelete, self.delete)

    def __do_layout(self):
        # begin wxGlade: MyDialog2.__do_layout
        sizer_5 = wx.BoxSizer(wx.VERTICAL)
        sizer_6 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_6.Add(self.agregar, 0, 0, 0)
        sizer_6.Add(self.view, 0, 0, 0)
        sizer_6.Add(self.edit, 0, 0, 0)
        sizer_6.Add(self.delete, 0, 0, 0)
        sizer_5.Add(sizer_6, 0, wx.EXPAND, 0)
        sizer_5.Add(self.table, 1, wx.EXPAND, 0)
        sizer_5.Add(self.Status, 0, wx.ALL, 0)
        self.SetSizer(sizer_5)
        #sizer_5.Fit(self)
        self.Layout()
		
class MyApp(wx.App):
    def OnInit(self):
        dialog_1 = DLG//Name//Index(None, -1, "")   
        dialog_1.Show() 
        return 1

app = MyApp(0)
app.MainLoop()

